package com.example.mplayer.data

import androidx.room.*
import kotlinx.coroutines.flow.Flow

@Dao
interface CardKeyDao {
    @Query("SELECT * FROM card_keys")
    fun getAllCardKeys(): Flow<List<CardKey>>

    @Insert
    suspend fun insert(cardKey: CardKey)

    @Update
    suspend fun update(cardKey: CardKey)

    @Delete
    suspend fun delete(cardKey: CardKey)
}